package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class BooleanLiteral implements GeneralLiteral {

    private int beginIndex;
    private int endIndex;
    private boolean true_;
    private boolean false_;
    private boolean unknown;

    public BooleanLiteral(int beginIndex, int endIndex, boolean true_, boolean false_, boolean unknown) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.true_ = true_;
        this.false_ = false_;
        this.unknown = unknown;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isTrue() {
        return true_;
    }

    public boolean isFalse() {
        return false_;
    }

    public boolean isUnknown() {
        return unknown;
    }

}
